package com.moyun.model.po.system;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 权限表
 * </p>
 *
 * @author yangboxuan
 * @since 2021-07-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_privilege")
public class SysPrivilegeEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 权限ID
     */
    @TableId(value = "privilege_id", type = IdType.AUTO)
    private Integer privilegeId;

    /**
     * 权限名称
     */
    @TableField("privilege_name")
    private String privilegeName;

    /**
     * 权限标识
     */
    @TableField("privilege_mark")
    private String privilegeMark;

    /**
     * 权限URL(权限内容)
     */
    @TableField("privilege_url")
    private String privilegeUrl;

    /**
     * 创建人 默认是1 (1是管理员admin)
     */
    @TableField(value = "creater",fill = FieldFill.INSERT)
    private Integer creater;

    /**
     * 创建时间
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 修改人 默认是1 (1是管理员admin)
     */
    @TableField(value = "modifier",fill = FieldFill.INSERT_UPDATE)
    private Integer modifier;

    /**
     * 修改时间
     */
    @TableField(value = "modify_time",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime modifyTime;

    /**
     * 是否删除标记(0:未删除)
     */
    @TableField("is_delete")
    private String isDelete;


}
